package com.blb.common.utils;

import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * MD5加密工具
 */
public class Md5Utils {

    public static String encrypt(String password,String salt){
        SimpleHash md5 = new SimpleHash("md5", password, salt, 10);
        return md5.toHex();
    }

    public static void main(String[] args) {
        String aaa = encrypt("123456", "aaa");
        System.out.println(aaa);
        String encrypt = encrypt("123456", aaa);
        System.out.println(encrypt);
    }
}
